package com.ruoyi.miaomiao.domain.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 按用户id查询所返回的购物车记录对象
 */
@Data
@AllArgsConstructor
@ApiModel(value = "购物车查询接口所返回的对象", description = "该对象是对购物车对象与商品对象的并集包装")
public class TrolleyVO {

    /** 购物车id（按商品记录） */
    @ApiModelProperty(value = "购物车id", name = "trolleyId", example = "9000000001")
    private Long trolleyId;

    /** 所属用户id */
    @ApiModelProperty(value = "所属用户id", name = "userId", example = "100000001")
    private Long userId;

    /** 商品id */
    @ApiModelProperty(value = "商品id", name = "goodId", example = "123456791")
    private Long goodId;

    /** 商品数量 */
    @ApiModelProperty(value = "商品数量", name = "goodNumber", example = "77")
    private Long goodNumber;

    /** 商品名称 */
    @ApiModelProperty(value = "商品名称", name = "goodsName", example = "杯子")
    private String goodsName;

    /** 商品封面 */
    @ApiModelProperty(value = "商品封面", name = "goodsCover", example = "封面需要以文件路径形式存于前端服务器")
    private String goodsCover;

    /** 商品价格 */
    @ApiModelProperty(value = "商品价格", name = "goodsPrice", example = "999")
    private Double goodsPrice;

    /** 商品简要描述 */
    @ApiModelProperty(value = "商品简要描述", name = "goodsDescription", example = "可真是一个好杯子")
    private String goodsDescription;
}
